Package-level declarations

Types

Link copied to clipboard
data object Aborted : AxpSdkError

Error for the case where the user manually aborted the operation.

Link copied to clipboard

This object represents the different API regions that your application can connect to.

Link copied to clipboard
data class AxpFailureResult<T>(val error: AxpSdkError) : AxpResult<T>

Result type returned when an operation has failed.

Link copied to clipboard

Enumerated type for the possible AXP modules.

Link copied to clipboard
abstract class AxpOmniSdk

Entry point for applications to configure and use the SDK.

Link copied to clipboard
sealed class AxpResult<T>

Result type returned from operations that can succeed or fail.

Link copied to clipboard
interface AxpSdkConfig

Application-visible view of the current configuration for the AXP SDK.

Link copied to clipboard
interface AxpSdkError
Link copied to clipboard
open class AxpSdkException(message: String) : RuntimeException

Common base class for exceptions thrown by the SDK.

Link copied to clipboard
data class AxpSuccessResult<T>(val value: T) : AxpResult<T>

Result type returned when an operation has succeeded.

Link copied to clipboard
data class BadRequest(val detail: String? = null) : AxpSdkError

Generic error for the 400 response code, returned when there's not a more specific error to be reported for it.

Link copied to clipboard
abstract class ConfigParameterException(val parameterName: String, detailMessage: String) : AxpSdkException

Common base class for exceptions thrown due to a problem with an SDK config parameter.

Link copied to clipboard
data class ConstraintViolation(val violations: Set<String>) : AxpSdkError

A problem that indicates a syntactically correct, yet semantically illegal request. The Server can not process this request until the client resolves the semantic errors described in the violations section.

Link copied to clipboard
interface Conversation

A user's interaction with AXP, often for a single topic.

Link copied to clipboard
Link copied to clipboard
typealias DialogId = String
Link copied to clipboard
typealias EngagementId = String
Link copied to clipboard

Error for the case where an engagement is not found.

Link copied to clipboard
fun interface FieldChangedListener<T>

Listener interface used for Java applications that can't observe a Kotlin Flow directly.

Link copied to clipboard
data object Forbidden : AxpSdkError

Error for the 403 response code - the user is not authorized to access the resource.

Link copied to clipboard
typealias IntegrationId = String
Link copied to clipboard

Error for the 500 response code - the server encountered an internal problem and could not process the request.

Link copied to clipboard
class InvalidConfigParameterException(val parameterName: String, val parameterValue: String, val extra: String? = null) : ConfigParameterException

Exception thrown for an SDK config parameter that is invalid.

Link copied to clipboard
data class JsonParseError(val message: String) : AxpSdkError

Error for the case where the JSON response from AXP could not be parsed successfully.

Link copied to clipboard
typealias JWT = String
Link copied to clipboard
fun interface JwtProvider

Interface implemented by applications to access a valid JWT for the SDK using the connection to their own application server.

Link copied to clipboard
typealias MessageId = String
Link copied to clipboard
data class MissingMandatoryParameter(val parameter: String, val location: String) : AxpSdkError

Error for the case where a response from the server is missing a value that is expected to be present.

Link copied to clipboard

Error for the case where a response from the server was expected to have a body, but there was no body.

Link copied to clipboard

Error for the case where an operation failed due to an error contacting AXP across the network.

Link copied to clipboard

Error for the case when there are no items to the variable you are accessing.

Link copied to clipboard

Enumerated type for the order by options when fetching a list of items.

Link copied to clipboard
interface PageIterator<T>

Iterator which iterates over elements of type T in a paginated way. Elements are ordered in a most recent first manner i.e. each subsequent page will have older elements of type T.

Link copied to clipboard
interface Participant

Data about a participant in an AXP session.

Link copied to clipboard
typealias ParticipantId = String
Link copied to clipboard
Link copied to clipboard
interface ResponseHandler<T : Any>

Interface for handling asynchronous results fom API operations.

Link copied to clipboard

Enumerated type for the possible optional configuration items for the SDK.

Link copied to clipboard
Link copied to clipboard
typealias SessionId = String
Link copied to clipboard

Error for the case where a user session is not found.

Link copied to clipboard

Error for the 401 response code - the user is not authenticated to access the resource.

Link copied to clipboard

Catch-all for all other types of errors.

Link copied to clipboard
interface UserSession

Properties

Link copied to clipboard
const val SDK_VERSION: String

Version string for the AXP Omni SDK.